<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/layout/page/form/page-fieldset-template.xhtml">
	<ui:param name="reRenderAddRecViewBean" value="#{commonContentViewBean.parent}" />
	<ui:param name="addRecViewBean" value="#{commonContentViewBean}" />	
	<ui:param name="compId" value="#{addRecViewBean.id}" />
	<ui:param name="compTitle" value="回复主题信息" />	
	<ui:param name="compToggleable" value="true" />
	<ui:define name="compContent">
		<ui:decorate template="/layout/input/editable-template.xhtml">
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single-all" />
				<ui:param name="compBean1Id" value="contentBody" />
				<ui:param name="compBean1Lable" value="回复内容" />
				<ui:define name="compBean1Content">
			    	<h:inputTextarea id="contentBody" styleClass="portal-editor" 
			    	value="#{addRecViewBean.responsecontent}" />
			    </ui:define>
			</ui:decorate>		
		</ui:decorate>
	</ui:define>	
	<ui:define name="compButtons">
		<p:commandButton actionListener="#{topicResAction.save}"
			title="保存" 
			onstart="SinoPortal.View.updateEditor('#{commonContentViewBean.id}');"
			oncomplete="#{commonContentViewBean.id}_dialog.hide();"					
			image="./img/icons/add.png" 
			value="保存" 
			style="margin:5px;"					
			update="#{reRenderAddRecViewBean.id}_form">				    
			<h:inputHidden value="#{addRecViewBean.id}"/>
			<h:inputHidden value="#{reRenderAddRecViewBean.id}"/>
		</p:commandButton>		
		<p:commandButton 
		     title="取消" 
		     image="./img/icons/cancel.png"				
		     onclick="#{commonContentViewBean.id}_dialog.hide();" 
		     type="button" 				
		     value="取消" 
		     style="margin:5px;">
		 </p:commandButton>
	</ui:define>
</ui:composition>
